import {
  getLocalStorage,
  // getSessionStorage
} from "@/utils";
import {
  SESSION_KEY_TOKEN,
  LOCATION_KEY_USERDATA,
  // SEARCH_DATA_LIST,
  // SEARCH_TOTAL_COUNT,
} from "@/config";
const state = {
  token: getLocalStorage(SESSION_KEY_TOKEN)
    ? getLocalStorage(SESSION_KEY_TOKEN)
    : "",
  userData: getLocalStorage(LOCATION_KEY_USERDATA)
    ? getLocalStorage(LOCATION_KEY_USERDATA)
    : {},
  searchDataList: [],
  searchTotalCount: 0,
  searchValue:'',
  // searchDataList: getSessionStorage(SEARCH_DATA_LIST)
  //   ? getSessionStorage(SEARCH_DATA_LIST)
  //   : [],
  // searchTotalCount: getSessionStorage(SEARCH_TOTAL_COUNT)
  //   ? getSessionStorage(SEARCH_TOTAL_COUNT)
  //   : 0,
  isLoading: false,
  activeIndex: 10,
  backcolor: "#1968FA", // 背景颜色
  color: "#fff", // 字体颜色
  opacity: "1", // 透明度
  hocolor: "#fff", // 选中颜色
  filter: "blur(0px)", // 摩斯遮挡
  islogin: true, // 是否退出登录
  isHeadshow: true, // 顶部栏是否显示
};
export default state;
